import request from '../utils/request'

export const getAttendance = () => {
  return request({
    methods: 'GET',
    url: '/attendance'
  })
}
export const putAttendance = data => {
  return request({
    method: 'PUT',
    url: `http://192.168.31.26:3040/attendance/${data.id}`,
    data
  })
}
export const searchAttendance = (time, auditStatus) => {
  return request({
    method: 'GET',
    url: `http://192.168.31.26:3040/attendance?time=${time}&auditStatus=${auditStatus}`
  })
}
